package pe.com.bbva.mantenimiento.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import pe.com.stefanini.core.domain.EntidadBase;

@Entity
@Table(name="TTARGPS_BIN",schema="TARGPS")
@SequenceGenerator(name = "SEQ_BIN", sequenceName = "TARGPS.SEQ_TARGPS_BIN", allocationSize = 1, initialValue = 1)
public class Bin extends EntidadBase{
	private static final long serialVersionUID = 1L;
	private Long id;
	private String codigo;
	private String descripcion;
	private String flagPriority;
		
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="SEQ_BIN")
	@Column(name="NID_BIN")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="CODIGO", length=300, nullable=false, unique=true)
	public String getCodigo() {
		return codigo;
	}
	public void setCodigo(String codigo) {
		this.codigo = codigo;
	}

	@Column(name="DESCRIPCION", length=300)
	public String getDescripcion() {
		return descripcion;
	}
	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}
	
	@Column(name="FLAG_PRIORITY", length=1)
	public String getFlagPriority() {
		return flagPriority;
	}
	public void setFlagPriority(String flagPriority) {
		this.flagPriority = flagPriority;
	}
}